package cn.edu.zut.model;

import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.util.List;

@Component
public class Student {

    private String number;
    private List<String> name;
    private String sex;
    private List<Integer> grade;

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public List<String> getName() {
        return name;
    }

    @Resource(name = "list")
    public void setName(List<String> name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public List<Integer> getGrade() {
        return grade;
    }

    public void setGrade(List<Integer> grade) {
        this.grade = grade;
    }

    @Override
    public String toString() {
        return "Student{" +
                "number=" + number +
                ", name=" + name +
                ", sex='" + sex + '\'' +
                ", grade=" + grade +
                '}';
    }
}
